package com.mt.system.mapper;

import java.util.List;
import java.util.Map;

import com.mt.system.entity.RoleMenuRelateEntity;

public interface RoleMenuRelateEntityMapper {

    /**
     * 根据角色id删除关联的权限数据
     * 
     * @param roleId
     * @return
     */
    int deleteByPrimaryKey(Integer roleId);

    int insert(RoleMenuRelateEntity record);

    List<RoleMenuRelateEntity> selectList(Map<String, Object> params);

    RoleMenuRelateEntity selectByPrimaryKey(Map<String, Object> params);

    int updateByPrimaryKeySelective(RoleMenuRelateEntity record);

    /**
     * 批量添加角色关联的权限数据
     * 
     * @param roleMenuList
     * @return
     */
    int insertList(List<RoleMenuRelateEntity> roleMenuList);

}